package beans;

import entities.CuotasACobrar;
import controllers.CuotasACobrarFacade;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name = "cuotasACobrarController")
@ViewScoped
public class CuotasACobrarController extends AbstractController<CuotasACobrar> implements Serializable {

    @EJB
    private CuotasACobrarFacade ejbFacade;

    public CuotasACobrarController() {
        super(CuotasACobrar.class);
    }

    @PostConstruct
    public void init() {
        super.setFacade(ejbFacade);
    }

    @Override
    protected void initializeEmbeddableKey() {
        this.getSelected().setCuotasACobrarPK(new entities.CuotasACobrarPK());
    }
}
